package com.desaysv.svview.refresh

import android.content.Context
import android.util.AttributeSet
import android.widget.FrameLayout

abstract class BaseRefreshHeader @JvmOverloads constructor(
    context: Context,
    attributeSet: AttributeSet? = null,
    defStyleAttr: Int = 0
) : FrameLayout(context, attributeSet, defStyleAttr){
    abstract fun startRefresh()
    abstract fun stopRefresh(listener: StopRefreshListener)
    abstract fun headerTouch(move: Float,orientation:Int)

    interface StopRefreshListener{
        fun stopComplete()
    }
}